<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" href="css/login.css"/>
    	<link rel="stylesheet" type="text/css" href="css/bg.css">
		<title>用户登录</title>
		<script src="js/jquery-3.3.1.js"></script>
   		<script src="js/jquery.vide.js"></script>
	</head>
	<body>
	 <form action="<%=request.getContextPath() %>/LoginServlet" method="POST">
   		<div class="login-form">
        	<h2>欢迎来到宿舍设备报修系统</h2>
        	<div style="color:red;text-align:center">
        		<%=request.getAttribute("msg")==null?"": request.getAttribute("msg")%>
        	</div>
        	<div class="form-input">
            	<input type="text" name="accountId" placeholder="账号">
        	</div>
        	<div class="form-input">
            	<input type="password" name="password" placeholder="密码">
        	</div>
        	<div class="form-radio">
        		<input type="radio" name="identity" value="student" checked="checked"> 学生
        		<input type="radio" name="identity" value="maintenance_personnel"> 维修工人
           		<input type="radio" name="identity" value="administrator"> 管理员
       		</div>
        	<div class="form-input">
            	<input type="submit" name="login" value="登录">
        	</div>
        	<a href="<%=request.getContextPath() %>/forget.jsp" class="forget">忘记密码?</a>
    	</div>
      </form>
	</body>
</html>